import request from '@/utils/request'
export function getAllCommodity() {
    return request({
        url: "/admin/getAllCommodity",
        method: 'get'
    })
}
export function searchCommodityByName(name) {
    return request({
        url: "/admin/searchCommodityByName",
        method: 'post',
        params: { name }
    })
}

export function delCommodityById(id) {
    return request({
        url: "/admin/delCommodityById",
        method: 'post',
        params: { id }
    })
}